package Hangman;

import com.sun.tools.internal.xjc.reader.xmlschema.bindinfo.BIConversion.User;
import java.util.Map;
import javax.ejb.*;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.FlushModeType;
import javax.persistence.LockModeType;
import javax.persistence.Query;
import javax.persistence.TypedQuery;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.persistence.metamodel.Metamodel;

/**
 * A player playing the game.
 */
@Stateful
public class Player {
    String username;
    Word word;

    public Player() {
        username = "";
    }

    public void setUserID(String userID, Word word) {
        this.username = userID;
        this.word = word;
    }

    public String toString() {
        return username;
    }

    public String getWord() {
        return word.toString();
    }
}
